from django.db import models

# Create your models here.

class news(models.Model):
    id=models.AutoField(primary_key=True)
    name=models.CharField(max_length=50)
    nr=models.CharField(max_length=100)
    fl=models.ForeignKey(to='new_fl',on_delete=models.CASCADE)

class new_fl(models.Model):
    id=models.AutoField(primary_key=True)
    name=models.CharField(max_length=50)